SftTree/OCX 7.0

SftTree.ItemDataTag Property

Softel vdm, Inc.

Defines an application defined value associated with an item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.DataTag instead

Syntax       

Get

VB.NET

Data = object.get_ItemDataTag(ByVal ItemIndex As Integer)  As Object

VB

Data = object.ItemDataTag(ByVal ItemIndex As Long)  As Variant

C#.NET

object Data = object.get_ItemDataTag(int ItemIndex);

VC++

_variant_t Data = object->ItemDataTag[long ItemIndex];
_variant_t Data = object->GetItemDataTag(long ItemIndex);

C

HRESULT object->get_ItemDataTag(long ItemIndex, VARIANT* Data);

Delphi

Data := object.ItemDataTag[ItemIndex : Integer]   : OleVariant;

Put

VB.NET

object.set_ItemDataTag(ByVal ItemIndex As Integer, ByVal Data As Object)

VB

object.ItemDataTag(ByVal ItemIndex As Long) = Data  As Variant

C#.NET

void object.set_ItemDataTag(int ItemIndex, object Data);

VC++

_variant_t object->ItemDataTag[long ItemIndex] = Data;
void object->PutItemDataTag(long ItemIndex, const _variant_t& Data);

C

HRESULT object->put_ItemDataTag(long ItemIndex, VARIANT Data);

Delphi

object.ItemDataTag[ItemIndex : Integer] := Data   : OleVariant;

object

A SftTree object.

ItemIndex

The zero-based item index.

Data

Defines an application defined value associated with an item.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.DataTag instead

The ItemDataTag property defines an application defined value associated with an item.

Additional properties used to associate an application defined value with an item are Item.Data, Item.DataFloat, Item.DataObject and Item.DataString.  These are distinct properties and can be used at the same time.

Cell related data can be saved using the Cell.Data, Cell.DataObject, Cell.DataString and Cell.DataTag properties.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com